package com.rimi.service.impl;

import com.rimi.bean.News;
import com.rimi.mapper.EncyclopediasMapper;
import com.rimi.service.EncyclopediasService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author admin
 * @version V1.0
 * @Description: 用一句话描述该文件做什么
 * @date 2021/7/10 15:10
 */
@Service
public class EncyclopediasServiceImpl implements EncyclopediasService {
    @Autowired
    EncyclopediasMapper encyclopediasMapper;

    @Override
    public List<News> findNewsByType(String type) {
        return encyclopediasMapper.findNewsByType(type);
    }
}
